import http from '../utils/http'

export default class Index {
  // 通过并发请求获取首页数据，提升页面渲染速度
  static getIndexData = () => {
    return Promise.all([
      http.get('/index/findBanner'),
      http.get('/index/findCategory1'),
      http.get('/index/advertisement'),
      http.get('/index/findListGoods'),
      http.get('/index/findRecommendGoods'),
    ])
  }
}
